<template>
  <div class="swiper">
    <swiper :option="swiperOption">
      <swiper-slide v-for="item in swiperImgList" :key="item.id">
        <img :src="item.url" />
      </swiper-slide>

      <div class="swiper-pagination" slot="pagination"></div>
    </swiper>
  </div>
</template>

<script>
  export default{
    props:['swiperImgList'],
    data(){
      return{

        swiperOption:{
          pagination:{
            el:'.swiper-pagination',
            clickable:true,
          },
          loop:true
        }
      }
    }
  }
</script>

<style scoped>
  .swiper{
    width: 100%;
    height: 2rem;
  }
  .swiper img{
    width: 100%;
    height: 2rem;
  }
</style>
